<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Vue:v-if v-for</title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		
	</head>
	<body>
		<div id="msg" v-bind:title="vueTitle">
			{{message}}
			<p v-if="seen">如果为true则显示</p>
			<ul>
				<li v-for="item in list">
					{{item}}
				</li>
			</ul>
		</div>
		<script type="text/javascript">
			var app = new Vue({
				el: '#msg',
				data: {
					message: 'Hello VUE!',
					vueTitle: '这是一个title2',
					seen: false,
					list: ['itemA', 'itemB', 'itemC']
				}
			});
		</script>
	</body>
</html>
